<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="style.css">
    <!-- <style>
        p{
            color:red
        }
    </style> -->

    <style>
        /* div{
            color: rebeccapurple;
        }
        p{
            color:green 
        } */
         .red{
            color: red;
        }
        .green{
            color: green;
        }
        #p1{
            font-size: 30px;
        }
    </style>
</head>
<body>
    <!-- <p style="color: red;">我是一个段落</p> -->
    <!-- <p>我是一个段落</p> -->

    <div class="red">我是一个div111</div>
    <div class="green">我是一个div222</div>
    <p class="red" id="p1">我是一个段落p1</p>
    <p class="green">我是一个段落p2</p>

</body>
</html>